package cn.lingyangwl.agile.system.assembly;

import cn.lingyangwl.agile.system.model.entity.RamApiResource;
import cn.lingyangwl.agile.system.model.rqrs.ram.RamResourceSaveReq;
import cn.lingyangwl.agile.system.model.rqrs.ram.RamResourceUpdateReq;
import cn.lingyangwl.agile.system.model.rqrs.ram.RamResourceResp;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 常规资源
 *
 * @author shenguangyang
 */
@Mapper(componentModel = "spring")
public interface RamApiResourceAssembly {
  RamResourceResp toResourceResp(RamApiResource source);
  
  RamApiResource toResource(RamResourceUpdateReq source);
  RamApiResource toResource(RamResourceSaveReq source);

  void updateResource(RamApiResource source, @MappingTarget RamApiResource target);
}
